wintab: init only after the display is assigned
authorAndrew Chadwick <a.t.chadwick@gmail.com>
Sun, 20 Nov 2016 01:57:07 +0000 (01:57 +0000)
committerIgnacio Casal Quinteiro <icq@gnome.org>
Tue, 22 Nov 2016 11:50:32 +0000 (12:50 +0100)
commit368e0117ed5b8036ec2946c4d36747cbcab57bf7
treec2bd5180994b5474bb78f9f69ea35ae3021ff8c2
parent8fb9d1578d82a496216a632db1c9f50141dedf90
wintab: init only after the display is assigned

Only attempt to initialize Wintab after the display manager announces
that the first default display has been set. Fixes a segfault during
initialization of specific tablet drivers' wintab32.dlls. Add assertions
and verbose comments explaining this nonsense because this stuff is a
pain to have to keep fixing.

https://bugzilla.gnome.org/show_bug.cgi?id=774379
gdk/win32/gdkdevicemanager-win32.c